package com.sanqing.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.sanqing.dao.base.impl.AutoDao;

/*
 * 应付，应收表
 */
@Entity
@Table(name = "tb_income")
@AutoDao(name = "incomeDao")
public class Income {
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	@Column(name = "id")
	private String id;
	private String incomeType;
	private String createTime;
	private String money;
	private String custom;
	private String state;
	private String dealMan;
	private String receivable;
	private String cope;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "agent_Id")
	private Agent agent;
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "keeper_Id")
	private Shopkeeper keeper;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}

	public String getCustom() {
		return custom;
	}

	public void setCustom(String custom) {
		this.custom = custom;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDealMan() {
		return dealMan;
	}

	public void setDealMan(String dealMan) {
		this.dealMan = dealMan;
	}

	public String getReceivable() {
		return receivable;
	}

	public void setReceivable(String receivable) {
		this.receivable = receivable;
	}

	public String getCope() {
		return cope;
	}

	public void setCope(String cope) {
		this.cope = cope;
	}

	public String getIncomeType() {
		return incomeType;
	}

	public void setIncomeType(String incomeType) {
		this.incomeType = incomeType;
	}

	public Agent getAgent() {
		return agent;
	}

	public void setAgent(Agent agent) {
		this.agent = agent;
	}

	public Shopkeeper getKeeper() {
		return keeper;
	}

	public void setKeeper(Shopkeeper keeper) {
		this.keeper = keeper;
	}

}
